import http from "@/utils/request";

export default{
    //查询
    async getA5List(pageNo,pageSize,approveStatus,startDate,endDate){
        return await http.get("/api/a5cydmgcyxxtcyjdjsbwh/list",{pageNo,pageSize,approveStatus,startDate,endDate});
    },

    //新增A5采油地面工程运行系统采油井单井设备维护数据
    //添加
    async addA5(params){
        // console.log(1);
        return await http.post("/api/a5cydmgcyxxtcyjdjsbwh/add",params)
    },
    //修改
    async updateA5(params){
        // console.log(29999999);
        return await http.put("/api/a5cydmgcyxxtcyjdjsbwh/update",params)
    },
    //上传文件
    async importExcel(myfile){
        // console.log(29999999);
        console.log(myfile.get("myfile"));

        return await http.upload("/api/fileAbout/fileUpload",{myfile})
    },
    //导入文件
    async batchImportExcel(filePath){
        // console.log(typeof(filePath));
        // console.log(filePath.get("filePath"));
        return await http.upload("/api/a5cydmgcyxxtcyjdjsbwh/batchInput",{filePath})
    },
    //下载模板
    async download(params){
        // console.log(1);
        return await http.get("/api/a5cydmgcyxxtcyjdjsbwh/downLoadExcel",params)
    },
    //删除
    async deleteA5(params) {
        // return Request.get('/slzzzb/all', params);
        // return Request.get('/QtccxZbhz/all', startDate,endDate);
        return await http.delete('api/a5cydmgcyxxtcyjdjsbwh/delete', params);

    },
    //批量删除
    async BdeleteA5(params) {
        // return Request.get('/slzzzb/all', params);
        // return Request.get('/QtccxZbhz/all', startDate,endDate);
        return await http.post('/api/a5cydmgcyxxtcyjdjsbwh/batchDelete', params);

    },
  //删除
  async delete(params) {
    return await http.delete('/api/a5cydmgcyxxtcyjdjsbwh/delete', params);
  },
    // //删除产量情况
    // async deleteClqk(params) {
    //     return await http.delete("/api/clqk/delete", params);
    // },

}
